package com.ybu.mapper;

import com.ybu.pojo.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;

@Repository
public interface UserMapper {
    int insert(User user);
//    User longin(String username,String password);  传统方式
User getByName(String username);

    int updatePwd(User user);
    int editInfo(User user);
    int setAvatar(User user);
    //@Param() 解决sql语句与映射的接口返回发参数名不一致的问题

//Integer updateAvatarById(@Param("id") Integer id, @Param("avatar") String avatar, @Param("modifiedUser") String modifiedUser,@Param("modifiedTime") Date modifiedTime);
}
